export const safeNavigateBack = (delta = 1) => {
  const pages = getCurrentPages()
  if(pages.length > delta) {
    uni.navigateBack({ delta })
  } else {
    uni.reLaunch({ url: '/pages/index/index' })
  }
} 